// 带标签的模板字符串

// const str = console.log`hello world`

const name = 'luchao'
const gender = true 

function myTagFunc(str, name, gender){
    // console.log(str, name, gender)
    // return '123'
    const sex = gender ? 'man' : 'women'
    return str[0] + name + str[1] + sex + str[2]
}


const result = myTagFunc`hey, ${name} is a ${gender}.`
console.log(result)


